Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Panda v7 - support key rotation #535

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

rtyley
Copy link
Member

@rtyley rtyley commented Sep 18, 2024

This upgrades Panda from v5 to v7, allowing us to use key rotation as introduced with guardian/pan-domain-authentication#150.

  • Panda v6 updates:

This PR sits on top of:

Testing

This has been successfully deployed to CODE, and I've checked that I'm able to re-authenticate with either the updated https://tagmanager.code.dev-gutools.co.uk/ or the unmodified https://composer.code.dev-gutools.co.uk/ - and they both accept each other's cookies.

This upgrades Panda from v5 to v7, allowing us to use key rotation as
introduced with guardian/pan-domain-authentication#150.
@rtyley rtyley force-pushed the upgrade-to-panda-v7-support-key-rotation branch from b248735 to 3b8d84a Compare September 19, 2024 15:22
Comment on lines -35 to 36
val panDomainSettings = new PanDomainAuthSettingsRefresher(
val panDomainSettings = PanDomainAuthSettingsRefresher(
domain = config.pandaDomain,
system = config.pandaSystemIdentifier,
bucketName = config.pandaBucketName,
settingsFileKey= config.pandaSettingsFileKey,
s3Client = AWS.S3Client,
S3BucketLoader.forAwsSdkV1(AWS.S3Client, "pan-domain-auth-settings")
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR:

...introduced the new S3BucketLoader abstraction, which simplifies constructing a PanDomainAuthSettingsRefresher and means that Panda is no longer tied to AWS SDK v1 - an alternative AWS SDK v2 implementation of S3BucketLoader could be introduced.

Base automatically changed from update-to-java-11 to main September 20, 2024 13:19
Copy link

@Fweddi Fweddi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think the recording is an incorrect attachment, but tested the auth dance in CODE and LGTM.

@rtyley
Copy link
Member Author

rtyley commented Sep 20, 2024

Think the recording is an incorrect attachment, but tested the auth dance in CODE and LGTM.

Darn, you're right, will remove...

@rtyley rtyley merged commit 6206d62 into main Sep 20, 2024
1 check passed
@rtyley rtyley deleted the upgrade-to-panda-v7-support-key-rotation branch September 20, 2024 15:07
@prout-bot
Copy link

Seen on PROD (merged by @rtyley 6 minutes and 23 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants